package cn.scw.project.facility.service;

import cn.scw.project.facility.domain.FacPrintPrice;
import cn.scw.project.facility.domain.netework.bean.FacPrintPriceAddReq;
import cn.scw.project.facility.domain.vo.FacPrintPriceResVo;
import cn.scw.project.facility.domain.vo.FacPrintPriceVo;

import java.util.List;

/**
 * 默认打印价格Service接口
 *
 * @author api
 * @date 2020-05-20
 */
public interface IFacPrintPriceService {
    /**
     * 查询默认打印价格
     *
     * @param id 默认打印价格ID
     * @return 默认打印价格
     */
    public FacPrintPrice selectFacPrintPriceById(Long id);

    FacPrintPriceVo selectFacPrintPriceVoById(Long id);

    /**
     * 查询默认打印价格列表
     *
     * @return 默认打印价格集合
     */
    public List<FacPrintPriceResVo> selectFacPrintPriceList();

    /**
     * 新增默认打印价格
     *
     * @param req 默认打印价格
     * @return 结果
     */
    public int insertFacPrintPrice(FacPrintPriceAddReq req);

    /**
     * 修改默认打印价格
     *
     * @param facPrintPrice 默认打印价格
     * @return 结果
     */
    public int updateFacPrintPrice(FacPrintPriceAddReq facPrintPrice);

    /**
     * 批量删除默认打印价格
     *
     * @param ids 需要删除的默认打印价格ID
     * @return 结果
     */
    public int deleteFacPrintPriceByIds(Long[] ids);

    /**
     * 删除默认打印价格信息
     *
     * @param id 默认打印价格ID
     * @return 结果
     */
    public int deleteFacPrintPriceById(Long id);

    boolean existsByTypeAndIsColoursAndIsDoubleFacedAndPaperNumber(String type, boolean isColours, boolean isDoubleFaced, int paperNumber);

    FacPrintPriceVo selectByTypeAndIsColoursAndIsDoubleFacedAndPaperNumber(String type, boolean isColours, boolean isDoubleFaced, int paperNumber);

    List<FacPrintPriceResVo> listToResVo(List<FacPrintPriceVo> list);
}
